home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / editor / gsar110.zip / COMP_DEP.H < prev    next >
C/C++ Source or Header  |  1996-08-08  |  691b  |  31 lines

  1. /* comp_dep.h ************************************* updated: 960801.15:00 TT
  2.  *
  3.  * This file contains a few constants which some compilers do not have
  4.  * defined at all ( even though they're ANSI ).
  5.  */
  6.  
  7. #ifndef FILENAME_MAX
  8. #define FILENAME_MAX 255
  9. #endif
  10.  
  11. #ifndef EXIT_SUCCESS
  12. #define EXIT_SUCCESS 0
  13. #endif
  14. #ifndef EXIT_FAILURE
  15. #define EXIT_FAILURE 1
  16. #endif
  17.  
  18. #ifndef SEEK_SET
  19. #define SEEK_SET  0  /* seek from start of file */
  20. #endif
  21. #ifndef SEEK_CUR
  22. #define SEEK_CUR  1  /* relative to current position */
  23. #endif
  24. #ifndef SEEK_END
  25. #define SEEK_END  2  /* relative to end of file */
  26. #endif
  27.  
  28. #ifndef S_ISREG
  29. #define S_ISREG(m)  (((m)&(S_IFMT))==S_IFREG)
  30. #endif
  31.